package cn.zc.service.impl;

import cn.zc.entity.TimeVo;
import cn.zc.service.PeriodTimeRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PeriodTimeService {

    @Autowired
    private PeriodTimeRepository periodTimeRepository;

    public List<TimeVo> getAllPeriodTimes() {
        return periodTimeRepository.findAll();
    }
}

